
class MyDevice {
    String? name;
    String? imgUrl;

    MyDevice({this.name, this.imgUrl});

    MyDevice.fromJson(Map<String, dynamic> json) {
        this.name = json["name"];
        this.imgUrl = json["imgUrl"];
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data["name"] = this.name;
        data["imgUrl"] = this.imgUrl;
        return data;
    }
}